<template>
	<router-view />
</template>

<script setup>
	import Login from './components/Login.vue';
	import axios from 'axios';
	import {
		provide
	} from 'vue';

	//element-plus 设计的弹窗
	import {
		ElMessage
	} from 'element-plus';
	import {
		useRouter,
		useRoute
	} from "vue-router";

	const route = useRoute();
	const router = useRouter();
	axios.defaults.baseURL = "http://localhost:8080/";
	const myElMessage = (message, type) => {
		ElMessage({
			message: message,
			type: type,
			showClose: true
		});
	};
	provide("axios", axios);
	provide("myElMessage", myElMessage);
	router.push("/login");
</script>

<style>
	* {
		margin: 0;
		padding: 0;
	}

	#app {
		width: 100%;
		height: 100%;
		font-family: "微软雅黑";
	}

	ul,
	ol {
		list-style: none;
	}

	a {
		text-decoration: none;
	}

	html,
	body {
		height: 100%;
	}
</style>